package com.fenyin.samples.study.base;  

import java.util.List;
  
public class ListCase {
	
	/**
	 * @Description: 让人很抓狂的代码：空指针
	 */
	public static void listNull(){
		List<String> list = null;
		for(String str:list){
			System.out.println(str);
		}
	}
	
	
	public static void main(String[] args){
		try{
			listNull();
		}catch(Exception ex){
			System.out.println(ex);
		}
	}
	
}
